﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using _1242026_1242133.DTO;
using _1242026_1242133.DAO;
namespace _1242026_1242133.BUS
{
    class DatPhongBUS
    {
        public DataTable LoadDSPhongTheoLoaiPhong(string MaLoaiPhong)
        {
            DatPhongDAO DAO = new DatPhongDAO();
            return DAO.LoadDSPhongTheoLoaiPhong(MaLoaiPhong);
        }

        public DataTable ThemPhieuThuePhong(DatPhongDTO DatPhongDto)
        {
            DatPhongDAO DAO = new DatPhongDAO();
            return DAO.ThemPhieuThuePhong(DatPhongDto);
        }

        public DataTable LoadDSKhachHangDangThuePhong()
        {
            DatPhongDAO DAO = new DatPhongDAO();
            return DAO.LoadDSKhachHangDangThuePhong();
        }

        public DataTable LoadDanhSachPhieuThue()
        {
            DatPhongDAO DAO = new DatPhongDAO();
            return DAO.LoadDanhSachPhieuThue();
        }
    }
}
